<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fnx" uri="http://java.sun.com/jsp/jstl/functionsx"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="f" uri="http://www.sctv.com/tags/form"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE html>
<html>
<head>
    <jsp:include page="/WEB-INF/views/head.jsp"/>
    <style>
        .tabs{}
        .tabs li{float:left;background-color:#f4f4f4;border-left:1px solid #e2e2e2;border-top:1px solid #ddd;border-right:1px solid #ddd;margin-right:0px;}
        .tabs li a{color:#555555;float:left;text-decoration:none;padding:5px 12px;}
        .tabs li a:link,.tabs li a:visited,.tabs li a:hover,.tabs li a:active{text-decoration:none;}
        .tabs li.active{background-color:#FFFFFF;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;}
        .tabs li.active a{color:#fff;background:#ed5565;border-color:#ed5565;}
        .tabs li.hover{background-color:#e7e7e7;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;}
        .tabs li.hover a{color:#000;}
    </style>
    <script>
      $(function() {
        $("#radio").buttonset();
        $("#sortHead").headSort();
        $("#tabs li").each(function(){
          $(this).hover(function(){
            if(!$(this).hasClass("active")) {
              $(this).addClass("hover");
            }
          },function(){
            $(this).removeClass("hover");
          });
        });

        $('#myTabs a').click(function (e) {
          e.preventDefault()

          if($(e.target).attr("name")=='news'){
            $("#searchForm").submit();
          }
          if($(e.target).attr("name")=='live'){
            $("#liveForm").submit();
          }
          if($(e.target).attr("name")=='spec'){
            $("#specForm").submit();
          }
          $(this).tab('show')
        })
        if('${tab}'=="doc"){
          $("#doc").addClass("active").siblings().removeClass("active");
          $("#doc1").addClass("active").siblings().removeClass("active");
        }
        if('${tab}'=="live"){
          $("#live1").addClass("active").siblings().removeClass("active");
          $("#live").addClass("active").siblings().removeClass("active");
        }
        if('${tab}'=="spec"){
          $("#spec").addClass("active").siblings().removeClass("active");
          $("#spec1").addClass("active").siblings().removeClass("active");
        }

      });
      function confirmDelete() {
        return confirm("<s:message code='confirmDelete'/>");
      }
      function optSingle(opt) {
        if(Cms.checkeds("ids")==0) {
          alert("<s:message code='pleaseSelectRecord'/>");
          return false;
        }
        if(Cms.checkeds("ids")>1) {
          alert("<s:message code='pleaseSelectOne'/>");
          return false;
        }
        var id = $("input[name='ids']:checkbox:checked").val();
        var url = $(opt+id).attr("href");
        if(url) {
          location.href=$(opt+id).attr("href");
        } else {
          alert("<s:message code='noPermission'/>");
        }
      }
      function optMulti(form, action, confirmMsg) {
        if(Cms.checkeds("ids")==0) {
          alert("<s:message code='pleaseSelectRecord'/>");
          return false;
        }
        if(confirmMsg) {
          if($.isFunction(confirmMsg)) {
            if(!confirmMsg()) {
              return false;
            }
          } else {
            if(!confirm(confirmMsg)) {
              return false;
            }
          }
        }
        form.action=action;
        form.submit();
        return true;
      }
      function optDelete(form) {
        optMulti(form,"infodelete.do",confirmDelete);
      }
    </script>
</head>
<body class="skin-blue content-body">
<jsp:include page="/WEB-INF/views/commons/show_message.jsp"/>
<div class="content-header">
    <h1>关联内容</h1>
    <%--<h1>${node.name}（文章） - <s:message code="list"/> <small>(<s:message code="totalElements" arguments="${pagedList.totalElements}"/>)</small></h1>--%>
</div>
<div class="content">
    <div class="box box-primary">
        <ul class="nav nav-tabs" role="tablist" id="myTabs" style="margin-bottom: 25px;">
            <li role="presentation" id="doc1" class="active"><a href="#doc" name="news" aria-controls="home" role="tab" data-toggle="tab">文库</a></li>
            <li role="presentation" id="live1"><a href="#live" aria-controls="profile" name="live" role="tab" data-toggle="tab">直播</a></li>
            <li role="presentation" id="spec1"><a href="#spec" aria-controls="profile" name="spec" role="tab" data-toggle="tab">专题</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="doc">
                <div class="box-body table-responsive">
                    <form id="searchForm" action="/cmscp/core/pub_center/focuslist.do" method="get" class="form-inline ls-search">
                        <div class="form-group">
                            <label for="search_CONTAIN_detail.title"><s:message code="info.title"/></label>
                            <input class="form-control input-sm" type="text" id="search_CONTAIN_detail.title" name="search_CONTAIN_detail.title" value="${requestScope['search_CONTAIN_detail.title'][0]}" style="width:150px;"/>
                        </div>
                        <div class="form-group">
                            <label for="search_CONTAIN_JinfoSpecials.Jspecial.title"><s:message code="info.specials"/></label>
                            <input class="form-control input-sm" type="text" id="search_CONTAIN_JinfoSpecials.Jspecial.title" name="search_CONTAIN_JinfoSpecials.Jspecial.title" value="${requestScope['search_CONTAIN_JinfoSpecials.Jspecial.title'][0]}" style="width:150px;"/>
                        </div>
                        <div class="form-group">
                            <label for="search_CONTAIN_JinfoTags.Jtag.name"><s:message code="info.tagKeywords"/></label>
                            <input class="form-control input-sm" type="text" id="search_CONTAIN_JinfoTags.Jtag.name" name="search_CONTAIN_JinfoTags.Jtag.name" value="${requestScope['search_CONTAIN_JinfoTags.Jtag.name'][0]}" style="width:100px;"/>
                        </div>
                        <div class="form-group">
                            <label for="search_EQ_creator.username"><s:message code="info.creator"/></label>
                            <input class="form-control input-sm" type="text" id="search_EQ_creator.username" name="search_EQ_creator.username" value="${requestScope['search_EQ_creator.username'][0]}" style="width:100px;"/>
                        </div>
                        <div class="form-group">
                            <label for="search_EQ_detail.author"><s:message code="info.author"/></label>
                            <input class="form-control input-sm" type="text" id="search_EQ_detail.author" name="search_EQ_detail.author" value="${requestScope['search_EQ_detail.author'][0]}" style="width:100px;"/>
                        </div>
                        <%--<div class="form-group">--%>
                            <%--<label for="search_GTE_publishDate_Date"><s:message code="beginTime"/></label>--%>
                            <%--<input class="form-control input-sm" type="text" id="search_GTE_publishDate_Date" name="search_GTE_publishDate_Date" value="${search_GTE_publishDate_Date[0]}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:100px;"/>--%>
                        <%--</div>--%>
                        <%--<div class="form-group">--%>
                            <%--<label for="search_LTE_publishDate_Date"><s:message code="endTime"/></label>--%>
                            <%--<input class="form-control input-sm" type="text" id="search_LTE_publishDate_Date" name="search_LTE_publishDate_Date" value="${search_LTE_publishDate_Date[0]}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:100px;"/>--%>
                        <%--</div>--%>
                        <div class="form-group">
                            <label for="search_EQ_priority"><s:message code="info.priority"/></label>
                            <select class="form-control input-sm" id="search_EQ_priority" name="search_EQ_priority">
                                <option value=""><s:message code="allSelect"/></option>
                                <c:forEach var="i" begin="0" end="100">
                                    <c:set var="istr">${i}</c:set>
                                    <option<c:if test="${istr eq search_EQ_priority[0]}"> selected="selected"</c:if>>${i}</option>
                                </c:forEach>
                            </select>
                        </div>
                        <%--<div class="form-group">--%>
                            <%--<label for="search_EQ_JinfoAttrs.Jattribute.id"><s:message code="info.attributes"/></label>--%>
                            <%--<select class="form-control input-sm" id="search_EQ_JinfoAttrs.Jattribute.id" name="search_EQ_JinfoAttrs.Jattribute.id">--%>
                                <%--<option value=""><s:message code="allSelect"/></option>--%>
                                <%--<c:forEach var="attr" items="${attributeList}">--%>
                                    <%--<c:set var="idstr">${attr.id}</c:set>--%>
                                    <%--<option value="${attr.id}"<c:if test="${idstr eq requestScope['search_EQ_JinfoAttrs.Jattribute.id'][0]}"> selected="selected"</c:if>>${attr.name}</option>--%>
                                <%--</c:forEach>--%>
                            <%--</select>--%>
                        <%--</div>--%>
                        <%--<div class="form-group">--%>
                            <%--&lt;%&ndash;<label for="queryInfoPermType"><s:message code="role.infoPermType"/></label>&ndash;%&gt;--%>
                            <%--&lt;%&ndash;<select class="form-control input-sm" id="queryInfoPermType" name="queryInfoPermType">&ndash;%&gt;--%>
                                <%--&lt;%&ndash;<option value=""><s:message code="allSelect"/></option>&ndash;%&gt;--%>
                                <%--&lt;%&ndash;<option value="2"<c:if test="${queryInfoPermType eq '2'}"> selected="selected"</c:if>><s:message code="role.infoPermType.2"/></option>&ndash;%&gt;--%>
                                <%--&lt;%&ndash;<option value="3"<c:if test="${queryInfoPermType eq '3'}"> selected="selected"</c:if>><s:message code="role.infoPermType.3"/></option>&ndash;%&gt;--%>
                            <%--&lt;%&ndash;</select>&ndash;%&gt;--%>
                        <%--</div>--%>
                        <button class="btn btn-default btn-sm" type="submit"><s:message code="search"/></button>
                        <f:hidden name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden name="queryNodeType" value="${queryNodeType}"/>
                        <f:hidden id="queryStatus" name="queryStatus" value="${queryStatus}"/>
                        <f:hidden id="returnUrl" name="returnUrl" value="${returnUrl}"/>
                        <f:hidden name="tab" value="news"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>
                        <div class="btn-group">
                            <button class="btn btn-default" type="button" onclick="location.href='/cmscp/core/current_hour/list.do?returnUrl=core/current_hour/hour_list&queryNodeId=${targetNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstring}';"><s:message code="return"/></button>
                        </div>
                    </form>
                    <form method="post">
                        <tags:search_params/>
                        <f:hidden name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden name="queryNodeType" value="${queryNodeType}"/>
                        <f:hidden name="queryInfoPermType" value="${queryInfoPermType}"/>
                        <f:hidden name="queryStatus" value="${queryStatus}"/>
                        <f:hidden id="returnUrl" name="returnUrl" value="${returnUrl}"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden name="tab" value="news"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>
                        <ul id="tabs" class="tabs list-unstyled">
                            <shiro:hasPermission name="core:info:status">
                                <%--<li<c:if test="${empty queryStatus}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('');$('#searchForm').submit();"><s:message code="info.status.all"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'pending'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('pending');$('#searchForm').submit();"><s:message code="info.status.pending"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'notpassed'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('notpassed');$('#searchForm').submit();"><s:message code="info.status.notpassed"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq '1'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('1');$('#searchForm').submit();"><s:message code="info.status.1"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'F'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('F');$('#searchForm').submit();"><s:message code="info.status.F"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'A'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('A');$('#searchForm').submit();"><s:message code="info.status.A"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'G'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('G');$('#searchForm').submit();"><s:message code="info.status.G"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'B'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('B');$('#searchForm').submit();"><s:message code="info.status.B"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'D'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('D');$('#searchForm').submit();"><s:message code="info.status.D"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'C'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('C');$('#searchForm').submit();"><s:message code="info.status.C"/></a></li>--%>
                                <%--<li<c:if test="${queryStatus eq 'E'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('E');$('#searchForm').submit();"><s:message code="info.status.E"/></a></li>--%>
                                <%--&lt;%&ndash;--%>
                                <%--<li<c:if test="${queryStatus eq 'Z'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('Z');$('#searchForm').submit();"><s:message code="info.status.Z"/></a></li>--%>
                                <%--&ndash;%&gt;--%>
                                <%--<shiro:hasPermission name="core:info:recall">--%>
                                <%--<li<c:if test="${queryStatus eq 'X'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('X');$('#searchForm').submit();"><s:message code="info.status.X"/></a></li>--%>
                                <%--</shiro:hasPermission>--%>
                            </shiro:hasPermission>
                        </ul>
                        <table id="pagedTable" class="table table-condensed table-bordered table-hover ls-tb">
                            <thead id="sortHead" pagesort="<c:out value='${page_sort[0]}' />" pagedir="${page_sort_dir[0]}" pageurl="infolist.do?page_sort={0}&page_sort_dir={1}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstringnosort}">
                            <tr class="ls_table_th">
                                <%--<th width="25"><input type="checkbox" onclick="Cms.check('ids',this.checked);"/></th>--%>
                                <th width="55"><s:message code="operate"/></th>
                                <th width="30" class="ls-th-sort"><span class="ls-sort" pagesort="id">ID</span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="detail.title"><s:message code="info.title"/></span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="publishDate"><s:message code="info.publishDate"/></span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="priority"><s:message code="info.priority"/></span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="views"><s:message code="info.views"/></span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="status"><s:message code="info.status"/></span></th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach var="bean" varStatus="status" items="${pagedList.content}">
                                <tr>
                                        <%--<td><input type="checkbox" name="ids" value="${bean.id}"/></td>--%>
                                    <td align="center">


                                        <shiro:hasPermission name="core:info:ref">
                                            <a id="edit_opt_${bean.id}" href="/cmscp/core/pub_center/focusinfosave.do?queryDate=${queryDate}&nodeId=${targetNodeId}&oid=&order=${order}&queryNodeId=${targetNodeId}&refInfoId=${bean.id}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&returnUrl=/cmscp/core/current_hour/list.do" class="ls-opt">引用</a>
                                            <%--<a id="edit_opt_${bean.id}" href="focusRefInfo.do?orderId=${orderId}&targetNodeId=${targetNodeId}&infoId=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&position=${pagedList.number*pagedList.size+status.index}&${searchstring}" class="ls-opt">引用</a>--%>
                                        </shiro:hasPermission>



                                    </td>
                                    <td><c:out value="${bean.id}"/></td>
                                    <td>
                                        <div><a href="javascript:void(0)" title="<c:out value='${bean.title}'/>"><c:out value="${fnx:substringx_sis(bean.title,30,'...')}"/></a></div>
                                        <div>
                                            [<span style='color:#c8103d;'>${bean.model.name}</span>]
                                            &nbsp;[<span style="color:blue;"><c:out value="${bean.node.displayName}"/></span>]
                                            <if test="${!empty bean.infoNodes}">
                                                <c:forEach var="infoNode" varStatus="status" items="${bean.infoNodes}">
                                                    <%--<c:out value="${infoNode.info.id}"></c:out>--%>
                                                    <%--<c:out value="${infoNode.node.id}"></c:out>--%>
                                                    <%--<c:out value="${bean.id}"></c:out>--%>
                                                    <%--<c:out value="${bean.node.id}"></c:out>--%>
                                                    <%--<c:out value="${infoNode.reference}"></c:out>--%>
                                                    <%--<c:out value="----"></c:out>--%>
                                                    <%--<c:choose>--%>
                                                    <%--<c:when test="${infoNode.info.id eq bean.id  and infoNode.node.id eq bean.node.id and infoNode.reference eq '1'  }"></c:when>--%>
                                                    <%--<c:otherwise>&nbsp;[<span style='color:#c8103d;'>引用</span>]</c:otherwise>--%>
                                                    <%--</c:choose>--%>
                                                    <c:if test="${infoNode.info.id eq bean.id  and infoNode.node.id eq node.id and infoNode.reference eq '0'  }">
                                                        &nbsp;[<span style='color:#c8103d;'>引用</span>]
                                                    </c:if>
                                                </c:forEach>
                                            </if>
                                            <c:if test="${fn:length(bean.infoAttrs) gt 0}">&nbsp;[<span style="color:#e66100;font-weight:bold;"><c:forEach var="ia" items="${bean.infoAttrs}" varStatus="status">${ia.attribute.name}<c:if test="${!status.last}"> </c:if></c:forEach></span>]</c:if>
                                        </div>
                                    </td>
                                    <td>
                                        <div><fmt:formatDate value="${bean.publishDate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
                                        <c:if test="${!empty bean.offDate}">
                                            <div><fmt:formatDate value="${bean.offDate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
                                        </c:if>
                                        <div>
                                            <span style="color:blue;"><c:out value="${bean.creator.username}"/></span> &nbsp;
                                            [<span style="color:blue;"><c:out value="${bean.org.displayName}"/></span>]
                                            <c:if test="${!empty bean.author}">&nbsp; <span style="color:blue;"><c:out value="${bean.author}"/></span></c:if>
                                        </div>
                                    </td>
                                    <td align="right"><c:out value="${bean.priority}"/></td>
                                    <td align="right"><c:out value="${bean.bufferViews}"/></td>
                                    <td align="center">
                                        <div>
                                            <c:choose>
                                                <c:when test="${bean.status eq '1'}">
                                                    ${bean.stepName}
                                                </c:when>
                                                <c:when test="${bean.status eq 'A'}">
                                                    <a href="${bean.url}" target="_blank"><s:message code="info.status.${bean.status}"/></a>
                                                </c:when>
                                                <c:otherwise>
                                                    <s:message code="info.status.${bean.status}"/>
                                                </c:otherwise>
                                            </c:choose>
                                        </div>
                                        <div>
                                            html:
                                            <c:set var="makeHtmlPerm" value="${false}"/>
                                            <shiro:hasPermission name="core:info:make_html">
                                                <c:set var="makeHtmlPerm" value="${true}"/>
                                            </shiro:hasPermission>
                                            <c:choose>
                                                <c:when test="${makeHtmlPerm}">
                                                    <a href="infomake_html.do?ids=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstring}" class="ls-opt" style="<c:if test="${bean.htmlStatus eq '2' || bean.htmlStatus eq '3' || bean.htmlStatus eq '4'}">color:red;</c:if>">
                                                        <s:message code="node.htmlStatus.${bean.htmlStatus}"/>
                                                    </a>
                                                </c:when>
                                                <c:otherwise>
				        <span style="<c:if test="${bean.htmlStatus eq '2' || bean.htmlStatus eq '3' || bean.htmlStatus eq '4'}">color:red;</c:if>">
				          <s:message code="node.htmlStatus.${bean.htmlStatus}"/>
				        </span>
                                                </c:otherwise>
                                            </c:choose>
                                        </div>
                                    </td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                        <c:if test="${fn:length(pagedList.content) le 0}">
                            <div class="ls-norecord"><s:message code="recordNotFound"/></div>
                        </c:if>
                    </form>
                    <form action="/cmscp/core/pub_center/focuslist.do" method="get" class="ls-page">
                        <tags:search_params excludePage="true"/>
                        <f:hidden name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden name="queryNodeType" value="${queryNodeType}"/>
                        <f:hidden name="queryInfoPermType" value="${queryInfoPermType}"/>
                        <f:hidden id="queryStatus" name="queryStatus" value="${queryStatus}"/>
                        <f:hidden id="returnUrl" name="returnUrl" value="${returnUrl}"/>
                        <f:hidden name="tab" value="news"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>
                        <tags:pagination pagedList="${pagedList}" pageId="infopage"/>


                    </form>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane" id="live">
                <div class="box-body table-responsive">
                    <form class="form-inline ls-search" id="liveForm" action="/cmscp/core/pub_center/chooselivelist.do" method="get">
                        <div class="form-group">
                            <label>直播标题</label>
                            <f:text class="form-control input-sm" name="search_CONTAIN_title" value="${search_CONTAIN_title[0]}" style="width:180px;"/>
                        </div>
                        <button class="btn btn-default btn-sm" type="submit"><s:message code="search"/></button>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden name="returnUrl" value="${returnUrl}"/>
                        <f:hidden name="tab" value="live"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>
                    </form>
                    <form action="batch_update.do" method="post">
                        <tags:search_params/>
                        <div class="btn-toolbar ls-btn-bar">

                        </div>
                        <table id="pagedTable1" class="table table-condensed table-bordered table-hover ls-tb">
                            <thead id="sortHead1" pagesort="<c:out value='${page_sort[0]}' />" pagedir="${page_sort_dir[0]}" pageurl="chooselivelist.do?page_sort={0}&page_sort_dir={1}&${searchstringnosort}">
                            <tr class="ls_table_th">
                                <%--<th width="25"><input type="checkbox" onclick="Cms.check('ids',this.checked);"/></th>--%>
                                <th width="240"><s:message code="operate"/></th>
                                <th width="30" class="ls-th-sort"><span class="ls-sort" pagesort="id">直播ID</span></th>
                                <th class="ls-th-sort"><span class="ls-sort">直播标题</span></th>
                                <th class="ls-th-sort"><span class="ls-sort">发布人</span></th>
                                <th class="ls-th-sort"><span class="ls-sort">来源</span></th>
                                <th class="ls-th-sort"><span class="ls-sort">直播间</span></th>
                                <th class="ls-th-sort"><span class="ls-sort">开播时间</span></th>
                                <th class="ls-th-sort"><span class="ls-sort">状态</span></th>
                                <th class="ls-th-sort"><span class="ls-sort">预约人数</span></th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach var="bean" varStatus="status" items="${livepagedList.content}">
                                <tr<shiro:hasPermission name="core:livebroadcast:edit"> ondblclick="location.href=$('#edit_opt_${bean.id}').attr('href');"</shiro:hasPermission>>
                                        <%--<td><input type="checkbox" name="ids" value="${bean.id}"/></td>--%>
                                    <td align="center">
                                        <c:if test="${not empty liveStatus && liveStatus eq '1'}">
                                            <a id="edit_opt_${bean.id}" href="/cmscp/core/pub_center/focusinfosave.do?queryDate=${queryDate}&nodeId=${targetNodeId}&oid=&order=${order}&queryNodeId=${targetNodeId}&refLiveId=${bean.id}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&returnUrl=/cmscp/core/current_hour/list.do" class="ls-opt">引用</a>
                                            <%--<a id="edit_opt_${bean.id}" href="/cmscp/core/livenode/liveinfosave.do?order=${order}&refLiveId=${bean.id}&nodeId=${targetNodeId}&position=${pagedList.number*pagedList.size+status.index}&${searchstring}" class="ls-opt">引用</a>--%>
                                        </c:if>
                                        <c:if test="${empty liveStatus}">
                                            <a id="edit_opt_${bean.id}" href="/cmscp/core/pub_center/focusinfosave.do?queryDate=${queryDate}&nodeId=${targetNodeId}&oid=&order=${order}&queryNodeId=${targetNodeId}&refLiveId=${bean.id}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&returnUrl=/cmscp/core/current_hour/list.do" class="ls-opt">引用</a>
                                            <%--<a id="edit_opt_${bean.id}" href="/cmscp/core/livenode/liveinfosave.do?order=${order}&refLiveId=${bean.id}&nodeId=${targetNodeId}&position=${pagedList.number*pagedList.size+status.index}&${searchstring}" class="ls-opt">引用</a>--%>
                                        </c:if>
                                    </td>
                                    <td align="center"><c:out value="${bean.id}"/></td>
                                    <td align="center"><c:out value="${bean.title}"/></td>
                                    <td align="center"><c:out value=""/>${bean.compere}</td>
                                    <td align="center"><c:if test="${bean.status eq 0}"><c:out value="${bean.source}"/></c:if></td>
                                    <td align="center">
                                        <%--<c:if test="${bean.status!=0}"><c:out value="${bean.source}"/>--%>
                                            <%--<a onclick="window.location.href='/cmscp/core/live_broadcast_room/list.do?id=${bean.id}'"><s:message code="liveroom.${bean.liveroom}"/></a>--%>
                                        <%--</c:if>--%>
                                    </td>
                                    <td align="center"><c:out value="${bean.time}"/></td>
                                        <%--<td><c:choose><c:when test="${bean.status}"></c:when><c:otherwise></c:otherwise></c:choose></td>--%>

                                    <td align="center"><s:message code="live.${bean.status}"/></td>
                                    <td align="center"><c:out value=""/></td>
                                        <%--<td align="center"><fmt:formatDate value=""/></td>--%>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                        <c:if test="${fn:length(livepagedList.content) le 0}">
                            <div class="ls-norecord">没有直播数据，请到直播管理中心创建内容！</div>
                        </c:if>
                    </form>
                    <form action="/cmscp/core/pub_center/chooselivelist.do" method="get" class="ls-page">
                        <tags:search_params excludePage="true"/>
                        <tags:pagination pagedList="${livepagedList}" pageId="livepage"/>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden name="tab" value="live"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden name="returnUrl" value="${returnUrl}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>
                    </form>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane" id="spec">
                <div class="box-body table-responsive">
                    <form class="form-inline ls-search" id="specForm" action="/cmscp/core/pub_center/speclist.do" method="get">
                        <f:hidden name="tab" value="spec"/>
                        <f:hidden name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden name="queryNodeType" value="${queryNodeType}"/>
                        <f:hidden name="queryInfoPermType" value="${queryInfoPermType}"/>
                        <f:hidden id="queryStatus" name="queryStatus" value="${queryStatus}"/>
                        <f:hidden id="returnUrl" name="returnUrl" value="${returnUrl}"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>
                        <div class="form-group">
                            <label><s:message code="special.title"/></label>
                            <f:text class="form-control input-sm" name="search_CONTAIN_title" value="${search_CONTAIN_title[0]}" style="width:180px;"/>
                        </div>
                        <div class="form-group">
                            <label><s:message code="beginTime"/></label>
                            <f:text class="form-control input-sm" name="search_GTE_creationDate_Date" value="${search_GTE_creationDate_Date[0]}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});"  style="width:120px;"/>
                        </div>
                        <div class="form-group">
                            <label><s:message code="endTime"/></label>
                            <f:text class="form-control input-sm" name="search_LTE_creationDate_Date" value="${search_LTE_creationDate_Date[0]}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});"  style="width:120px;"/>
                        </div>
                        <div class="form-group">
                            <label><s:message code="special.category"/></label>
                            <select class="form-control input-sm" input-sm name="search_EQ_category.id">
                                <option value=""><s:message code="allSelect"/></option>
                                <f:options items="${categoryList}" itemValue="id" itemLabel="name" selected="${requestScope['search_EQ_category.id'][0]}"/>
                            </select>
                        </div>
                        <div class="form-group">
                            <label><s:message code="special.recommend"/></label>
                            <select class="form-control input-sm" name="search_EQ_recommend_Boolean">
                                <option value=""><s:message code="allSelect"/></option>
                                <f:option value="true" selected="${search_EQ_recommend_Boolean[0]}"><s:message code="yes"/></f:option>
                                <f:option value="false" selected="${search_EQ_recommend_Boolean[0]}"><s:message code="no"/></f:option>
                            </select>
                        </div>
                        <button class="btn btn-default btn-sm" type="submit"><s:message code="search"/></button>
                    </form>
                    <form action="batch_update.do" method="post">
                        <tags:search_params/>
                        <f:hidden name="tab" value="spec"/>
                        <f:hidden name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden name="queryNodeType" value="${queryNodeType}"/>
                        <f:hidden name="queryInfoPermType" value="${queryInfoPermType}"/>
                        <f:hidden id="queryStatus" name="queryStatus" value="${queryStatus}"/>
                        <f:hidden id="returnUrl" name="returnUrl" value="${returnUrl}"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>

                        <table id="pagedTable2" class="table table-condensed table-bordered table-hover ls-tb">
                            <thead id="sortHead2" pagesort="<c:out value='${page_sort[0]}' />" pagedir="${page_sort_dir[0]}" pageurl="list.do?page_sort={0}&page_sort_dir={1}&${searchstringnosort}">
                            <tr class="ls_table_th">
                                <%--<th width="25"><input type="checkbox" onclick="Cms.check('ids',this.checked);"/></th>--%>
                                <th width="240"><s:message code="operate"/></th>
                                <th width="30" class="ls-th-sort"><span class="ls-sort" pagesort="id">ID</span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="category.name"><s:message code="special.category"/></span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="model.name"><s:message code="special.model"/></span></th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="title"><s:message code="special.title"/></span></th>
                                <th>专题级别</th>
                                <th>发布状态</th>
                                <th class="ls-th-sort"><span class="ls-sort" pagesort="creationDate"><s:message code="special.creationDate"/></span></th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach var="bean" varStatus="status" items="${specpagedList.content}">
                                <tr<shiro:hasPermission name="core:special:edit"> ondblclick="location.href=$('#edit_opt_${bean.id}').attr('href');"</shiro:hasPermission>>
                                        <%--<td><input type="checkbox" name="ids" value="${bean.id}"/></td>--%>
                                    <td align="center">
                                        <shiro:hasPermission name="core:special:copy">
                                            <a id="edit_opt_${bean.id}" href="/cmscp/core/pub_center/focusinfosave.do?queryDate=${queryDate}&nodeId=${targetNodeId}&oid=&order=${order}&queryNodeId=${targetNodeId}&refSpecId=${bean.id}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&returnUrl=/cmscp/core/current_hour/list.do" class="ls-opt">引用</a>
                                        </shiro:hasPermission>
                                    </td>
                                    <td><c:out value="${bean.id}"/></td>
                                    <td><c:out value="${bean.category.name}"/></td>
                                    <td><c:out value="${bean.model.name}"/></td>
                                    <td><c:out value="${bean.title}"/></td>
                                    <td>
                                        <c:choose><c:when test="${bean.level eq  0}">
                                            <span>父专题</span>
                                        </c:when>
                                            <c:otherwise><span>子专题</span></c:otherwise></c:choose>
                                    </td>
                                    <td>
                                        <c:if test="${bean.level eq 0}">
                                            <c:choose>
                                                <c:when test="${bean.publish eq  0}"><span>已发布</span></c:when>
                                                <c:otherwise><span style="color: red">未发布</span></c:otherwise></c:choose>
                                        </c:if>

                                    </td>
                                    <td align="center"><fmt:formatDate value="${bean.creationDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                        <c:if test="${fn:length(specpagedList.content) le 0}">
                            <div class="ls-norecord"><s:message code="recordNotFound"/></div>
                        </c:if>
                    </form>
                    <form action="/cmscp/core/pub_center/speclist.do" method="get" class="ls-page">
                        <f:hidden name="tab" value="spec"/>
                        <f:hidden name="queryNodeId" value="${queryNodeId}"/>
                        <f:hidden name="queryNodeType" value="${queryNodeType}"/>
                        <f:hidden name="queryInfoPermType" value="${queryInfoPermType}"/>
                        <f:hidden id="queryStatus" name="queryStatus" value="${queryStatus}"/>
                        <f:hidden id="returnUrl" name="returnUrl" value="${returnUrl}"/>
                        <f:hidden  name="targetNodeId" value="${targetNodeId}"/>
                        <f:hidden name="foucs" value="${foucs}"/>
                        <f:hidden  name="order" value="${order}"/>
                        <f:hidden  name="queryDate" value="${queryDate}"/>
                        <tags:search_params excludePage="true"/>
                        <tags:pagination pagedList="${specpagedList}" pageId="specpage"/>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
</body>
</html>